<?php get_header(); ?>
	<div class="container">
	    <div class="row">
	      <div class="col-lg-12">
	        <div class="entry-header">
	          
	            <?php if (have_posts()) : ?>

	 			<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>

				<?php /* If this is a category archive */ if (is_category()) { ?>
					
					<h2 class="entry-title" style="margin: 30px 0 0; font-size: 38px;"><?php single_cat_title(); ?></h2>

				<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
					
					<h2 class="entry-title" style="margin: 30px 0 0; font-size: 38px;">Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2>

				<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
					<h2 class="entry-title" style="margin: 30px 0 0; font-size: 38px;">Archive for <?php the_time('F jS, Y'); ?></h2>

				<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>					
					<h2 class="entry-title" style="margin: 30px 0 0; font-size: 38px;">Archive for <?php the_time('F, Y'); ?></h2>

				<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>					
					<h2 class="entry-title" style="margin: 30px 0 0; font-size: 38px;">Archive for <?php the_time('Y'); ?></h2>

				<?php /* If this is an author archive */ } elseif (is_author()) { ?>
					<h2 class="entry-title" style="margin: 30px 0 0; font-size: 38px;">Author Archive</h2>

				<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>					
					<h2 class="entry-title" style="margin: 30px 0 0; font-size: 38px;">Blog Archives</h2>
				
				<?php } ?>
	        </div>
	      </div>
	    </div>
	</div>

	<div id="primary-content" class="container">
	   <div class="primary-content-wrap row">
	      <div id="content" class="col-lg-8">
	      	<?php while ( have_posts() ) : the_post(); ?>
				
				<?php get_template_part( 'content', 'page' ); ?>

			<?php endwhile; // end of the loop. ?>	        
	        
	         <!-- #post -->						
	        <?php ctw2_numeric_posts_nav(); ?>
	        <?php else : ?>

				<h2>Nothing found</h2>

			<?php endif; ?>
	      <!-- end #content -->
	      </div>
	     <div id="sidebar" class="col-lg-4">
	       		<?php get_sidebar(); ?>
	      </div>
	      <!-- end #sidebar -->	      
	   </div>
	</div>
